package com.hnuit.dao;

import com.hnuit.pojo.User;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface UserDao {
    public List<User> findAll() throws IOException;

    public User findById(int id)throws IOException;

    public User deleteById(int id)throws IOException;

    Integer addUser(User user) throws IOException;

    Integer updateUser(Map<String,Object> map) throws IOException;
}
